package im.beans;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.junit.Test;

import com.alibaba.fastjson.JSON;

/**
 * 群组消息
 * @author 凯
 *
 */

@Entity
@Table(name="t_IM_GroupMessage")
public class GroupMessage {
	
	private long id;
	
	// 发送消息的用户
	private long userId;
	
	// 发送消息的用户名
	private String userName;
	
	// 发送消息的用户真实姓名
	private String realName;
	
	
	// 消息所在群
	private long groupId;
	
	// 消息所在群名
	private String groupName;
	
	// 时间
	private long timestamp;
	
	// 消息类型
	private String type;
	
	// 消息内容
	private String message;
	
	// 
	private String fileURI;
	
	//
	private String fileName;
	
	public long getUserId() {
		return userId;
	}

	@Id
	@GeneratedValue
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public void setUserId(long userId) {
		this.userId = userId;
	}

	public long getGroupId() {
		return groupId;
	}

	public void setGroupId(long groupId) {
		this.groupId = groupId;
	}

	public long getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(long timestamp) {
		this.timestamp = timestamp;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getGroupName() {
		return groupName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	public String getFileURI() {
		return fileURI;
	}

	public void setFileURI(String fileURI) {
		this.fileURI = fileURI;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	
	
	
}
